feat: add lapack/base/dlagts - #13800
Conversation
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown_pkg_readmes
status: passed
- task: lint_markdown_docs
status: na
- task: lint_markdown
status: na
- task: lint_package_json
status: passed
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
Coverage Report
The above coverage report was generated for the changes in this PR. |
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown_pkg_readmes
status: passed
- task: lint_markdown_docs
status: na
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: passed
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: passed
- task: lint_javascript_tests
status: passed
- task: lint_javascript_benchmarks
status: passed
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: passed
- task: lint_license_headers
status: passed
---
|
@iampratik13 I made some updates to the PR. Can you please review those and confirm if those are correct? |
|
@anandkaranubc Thanks! I reviewed the latest updates, and everything looks correct to me. |
|
@iampratik13 Are you positive that there are no similar changes here that were done in |
|
@anandkaranubc Yes, I’m sure. I reviewed it again, and it looks good to me. |
Awesome thanks! |
| } | ||
| // Apply the transposed unit lower bidiagonal matrix `L^T` and the permutation `P`... | ||
| for ( k = N; k >= 2; k-- ) { | ||
| iy = offsetY + ( (k-1)*strideY ); |
There was a problem hiding this comment.
Why are you doing this sort of repeated arithmetic expression?
Before entering the loop, precompute the initial iy, ii, ic. Then, at the end of the loop, decrement the pointers by the strides. You're doing 3 arithmetic operations per loop iteration, but you only need to be doing one.
That applies above, as well. You have all these inline expressions for pointers. Most of those can go away with clean code practices.
There was a problem hiding this comment.
I'll need to see this cleaned up before doing a further review.
| } | ||
| } | ||
| // Apply the transposed unit lower bidiagonal matrix `L^T` and the permutation `P`... | ||
| for ( k = N; k >= 2; k-- ) { |
There was a problem hiding this comment.
Why are we starting from k = N and then doing k - 1 below? That seems like a Fortran one-based indexing translation. Set k = N-1 and then you can avoid k-1. k is not used anywhere else in the loop beside pointer arithmetic. But also, this should go away once you fix your arithmetic expressions.
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes. report:
Resolves none.
Description
This pull request:
lapack/base/dlagtsRelated Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
{{TODO: add disclosure if applicable}}
@stdlib-js/reviewers